package com.itheima.controller;

import com.itheima.common.R;
import com.itheima.manager.CmsPrefrenceAreaManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CmsPrefrenceAreaController {

    @Autowired
    CmsPrefrenceAreaManager cmsPrefrenceAreaManager;


    @GetMapping("/prefrenceArea/listAll")
    public R getAll()
    {
        return cmsPrefrenceAreaManager.getAll();

    }
}
